import time
import threading
def loop():
	print('线程%s正在运行……'%threading.current_thread().name)
	n=0
	while n<5:
		n=n+1
		print('线程%s>>>%s'%(threading.current_thread().name,n))
		time.sleep(1)
	print('线程%s结束。'%threading.current_thread().name)

print('线程%s正在运行……'%threading.current_thread().name)
t=threading.Thread(target=loop,name='MyThread')
t.start()
m=0
while m<3:
		m=m+1
		print('线程%s>>>%s'%(threading.current_thread().name,m))
		time.sleep(1)
t.join()
print('线程%s结束。'%threading.current_thread().name)